package com.zhuojy.equity.mall.admin.dal.mapper.tExpenseAccount;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhuojy.equity.mall.admin.common.entity.po.TExpenseAccountPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author:LYL
 * @Date 2024/3/31 19:29
 */
@Mapper
public interface TExpenseAccountMapper extends BaseMapper<TExpenseAccountPO> {
    /**
     * @description:   查询报销/借款
     * @author: lyl
     * @date: 2024/3/31 20:46
     * @param: tExpenseAccountPO
     * @param: pages
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.zhuojy.equity.mall.admin.common.entity.po.TExpenseAccountPO>
     **/
    IPage<TExpenseAccountPO> findExpenseAccountFenYe(@Param("tExpenseAccountPO") TExpenseAccountPO tExpenseAccountPO,@Param("Page") Page pages);
    /**
     * @description:回显
     * @author: lyl
     * @date: 2024/4/1 16:37
     * @param: id
     * @return: com.zhuojy.equity.mall.admin.common.entity.po.TExpenseAccountPO
     **/
    TExpenseAccountPO findExpenseAccountById(Long id);

    /**
     * @description:回显报销表状态修改
     * @author: lyl
     * @date: 2024/4/1 17:15
     * @param: tExpenseAccountPO
     **/
    void updateExpenseAccountStatus(@Param("tExpenseAccountPO") TExpenseAccountPO tExpenseAccountPO);
}
